{% extends "base.html" %}

{% block content %}
	<div class="row">
		<div class="span12 offset2 login_form">
		
			<form action="/accounts/login" method="post">
			
			<table class="bordered-table">
			{% if form.errors %}
				{% for field in form %}
				<tr>
					<td>{{field.label}}</td>
					<td>{{field}}</td>
					<td>{{field.errors}}</td>
				</tr>
				{% endfor %}
			{% else %}
				{% for field in form %}
				<tr>
					<td>{{field.label}}</td>
					<td>{{field}}</td>
				</tr>
				{% endfor %}
			{% endif %}
			</table>
			<input type="submit" class="btn primary" value="Login" />
			
			</form>
		</div>
	</div>
{% endblock %}